<template>
  <!-- <el-button class="btn" @click="btnClick"><slot /></el-button> -->
  <!-- slot插槽 父组件传递内容给默认插槽 -->
  <el-button class="btn"><slot /></el-button>
</template>

<script>
export default {
  // methods: {
  //   btnClick() {
  //     this.$emit('pointer', 111) //子传父
  //   }
  // }
}
</script>

<style lang="scss" scoped>
.btn{
  background-color: pink;
  padding: 5px 10px;
  box-shadow: 2px 2px 2px 2px;
  cursor: pointer;
}
</style>
